<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>门户组件（Portlets）</title>
<link rel="stylesheet" href="/static/jquery-ui/jquery-ui.css">
<script src="/static/jquery-ui/jquery.js"></script>
<script src="/static/jquery-ui/jquery-ui.js"></script>
<script src="/static/layer/layer.js"></script>
<script src="/static/portal.js"></script>
<link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css">
<style>
body {
	width: 1024px;
}
.column0 {
	width: 0px;
	float: left;
	padding-bottom: 100px;
}
.column1 {
	width: 256px;
	float: left;
	padding-bottom: 100px;
}
.column2 {
	width: 512px;
	float: left;
	padding-bottom: 100px;
}
.column3 {
	width: 768px;
	float: left;
	padding-bottom: 100px;
}
.column4 {
	width: 1024px;
	float: left;
	padding-bottom: 100px;
}

.portlet {
	margin: 0 1em 1em 0;
	padding: 0.3em;
}

.portlet-header {
	padding: 0.2em 0.3em;
	margin-bottom: 0.5em;
	position: relative;
}

.portlet-toggle {
	position: absolute;
	top: 50%;
	right: 0;
	margin-top: -8px;
}

.portlet-content {
	padding: 0.4em;
}

.portlet-placeholder {
	border: 1px dotted black;
	margin: 0 1em 1em 0;
	height: 50px;
}
</style>
<script type="text/javascript">
$(function(){
	var tabId = "${tabId}";
	if(tabId != null && tabId != ''){
		swithTab(tabId);
	}else{
		tabId = $($("#navTab li a").get(0)).attr("tabId");
		swithTab(tabId);
	}
});
</script>
</head>
<body>
	<div style="width: 1024px;">
		<button onclick="addCanvas();">添加画布</button>
		<button onclick="addCanvasRes();">添加资源</button>
		<button onclick="saveCanvasRes();">保存</button>
	</div>
	<div style="width: 1024px;">
		<ul id="navTab">
			<c:forEach items="${canvas}" var="item">
				<li><a href="javascript:;" tabId="${item.id}" onclick="swithTab('${item.id}')">${item.name}</a></li>
			</c:forEach>
		</ul>
	</div>
	<div id="portletContent"></div>
	<!-- <div class="column1">
		<div class="portlet" style="height: 400px;">
			<div class="portlet-header">订阅</div>
			<div class="portlet-content">
				<iframe height="100%" width="100%" scrolling="auto" src=""></iframe>
			</div>
		</div>
		<div class="portlet">
			<div class="portlet-header">新闻</div>
			<div class="portlet-content">Lorem ipsum dolor sit amet,
				consectetuer adipiscing elit</div>
		</div>
	</div>
	<div class="column2">
		<div class="portlet">
			<div class="portlet-header">购物</div>
			<div class="portlet-content">Lorem ipsum dolor sit amet,
				consectetuer adipiscing elit</div>
		</div>
	</div>
	<div class="column1">
		<div class="portlet">
			<div class="portlet-header">链接</div>
			<div class="portlet-content">Lorem ipsum dolor sit amet,
				consectetuer adipiscing elit</div>
		</div>
		<div class="portlet">
			<div class="portlet-header">图像</div>
			<div class="portlet-content">Lorem ipsum dolor sit amet,
				consectetuer adipiscing elit</div>
		</div>
	</div> -->
</body>
</html>